import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
  path:"/",
  redirect:"todolist"
  },
  {
    path: '/todolist',
    name: 'todolist',
    component: () => import('../views/todolist.vue')
  }, {
    path: '/search',
    name: 'search',
    component: () => import('../views/search.vue')
  }
]
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router